{if is_array($arrTask)}
<div class="panel panel-default">
<div class="panel-heading">最新任务</div>

<div class="panel-body task_list">
<ul>
{loop $arrTask $key $item}
<li>

<div class="userimg"><a href="{tsUrl('user','duty',array('id'=>$item[user][userid]))}"><img class="img-rounded" src="{$item[user][face]}" width="32" height="32" alt="{$item['user']['username']}" title="{$item['user']['username']}" /></a></div>

<div class="task_title">
<div class="title">
<a title="{$item[title]}" href="{tsUrl('task','show',array('id'=>$item[taskid]))}{$mylink}">{$item[title]}</a>

</div>
<div class="task_info">
<span style="float:left;">
 <a href="{tsUrl('user','topic',array('id'=>$item[userid]))}">{$item[user][username]}</a>
 {php echo getTime($item[addtime],time())}

</span>

<span style="float:right;">

<a href="{tsUrl('task','type',array('id'=>$item['typeid']))}">{$item[type][typename]}</a>


{if $item[count_userwish]>0}<a class="rank" style="color:#FFFFFF;" href="{tsUrl('task','show',array('id'=>$item[taskid]))}">{$item[count_userwish]}</a>{/if}
</span>
</div>

</div>

<div class="clear"></div>

</li>

{/loop}
    <li style="float:right;border-bottom: 0px;"><a href="{tsUrl('task')}"><img src="{SITE_URL}public/images/right.png" style="height:15px"></img></a></li>
</ul>
</div>

</div>
{/if}